********************************************************************************
* Self-Confidence and Gender Gaps in Political Interest, Attention, and Efficacy
* Journal of Politics
* 2013 American National Election Study - Internet Recontact Survey
********************************************************************************

* TABLE 2: Gender and the Mediating Effects of Self-Confidence, 2013 ANES
medeff (regress selfesteem female tfam educ age black latino) (regress polint13 selfesteem female tfam educ age black latino) [pweight=c5_weight], treat(female) mediate(selfesteem)
medeff (regress selfesteem female tfam educ age black latino) (regress folpol selfesteem female tfam educ age black latino) [pweight=c5_weight], treat(female) mediate(selfesteem)
medeff (regress selfesteem female tfam educ age black latino) (regress pineff selfesteem female tfam educ age black latino) [pweight=c5_weight], treat(female) mediate(selfesteem)


* sensitivity analysis
medsens (regress selfesteem female tfam educ age black latino) (regress polint13 selfesteem female tfam educ age black latino), treat(female) mediate(selfesteem) sims(1000)
twoway rarea _med_updelta0 _med_lodelta0 _med_rho, bcolor(gs14) || line _med_delta0 _med_rho , lcolor(black) ytitle("ACME") xtitle("Sensitivity parameter: {&rho}") legend(off) title("ACME({&rho})")

medsens (regress selfesteem female tfam educ age black latino) (regress folpol selfesteem female tfam educ age black latino), treat(female) mediate(selfesteem) sims(1000)
twoway rarea _med_updelta0 _med_lodelta0 _med_rho, bcolor(gs14) || line _med_delta0 _med_rho , lcolor(black) ytitle("ACME") xtitle("Sensitivity parameter: {&rho}") legend(off) title("ACME({&rho})")

medsens (regress selfesteem female tfam educ age black latino) (regress pineff selfesteem female tfam educ age black latino), treat(female) mediate(selfesteem) sims(1000)
twoway rarea _med_updelta0 _med_lodelta0 _med_rho, bcolor(gs14) || line _med_delta0 _med_rho , lcolor(black) ytitle("ACME") xtitle("Sensitivity parameter: {&rho}") legend(off) title("ACME({&rho})")


* TABLE A19: Moderating effects of gender
regress polint13 c.selfesteem##female female##c.tfam female##c.educ age black latino [pweight=c5_weight]
regress folpol c.selfesteem##female female##c.tfam female##c.educ age black latino [pweight=c5_weight]
regress pineff c.selfesteem##female female##c.tfam female##c.educ age black latino [pweight=c5_weight]

